package org.qiyu.live.im.provider.rpc;

import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.qiyu.live.im.interfaces.ImOnlineRpc;
import org.qiyu.live.im.provider.service.ImOnlineServer;

/**
 * @Description: 用户是否在线
 * @Author: 张广焱
 * @Date: 2024-05-05 下午7:55
 */
@DubboService
public class ImOnlineRpcImpl implements ImOnlineRpc {
    @Resource
    private ImOnlineServer imOnlineServer;

    @Override
    public boolean IsOnline(long userId, int appId) {
        return imOnlineServer.IsOnline(userId, appId);
    }
}
